import requests

# # 发送请求
# url = 'http://127.0.0.1:8000/myapp/sendemail/'
# data = {
#     # "username": 'admin2',
#     # "password": '123',
#     "email": '347155713@qq.com',
#     # "phone": '15711111111',
# }
#
# res = requests.post(url=url, data=data)
#
# # content = res.content.decode('utf-8')
#
# print(res.text)

# 获取手机验证码
# url = 'http://127.0.0.1:8000/myapp/sendphone/'
# data = {
#     # "username": 'admin2',
#     # "password": '123',
#     # "email": '347155713@qq.com',
#     "phone": '15737333957',
# }
#
# res = requests.post(url=url, data=data)
#
# # content = res.content.decode('utf-8')
#
# print(res.text)


# 登录
# url = 'http://127.0.0.1:8000/myapp/userlogin/'
# data = {
#     "username": 'admin2',
#     "password": '123',
#     "phone": '15737333957',
#     "phone_code": '584181'
# }
#
# res = requests.post(url=url, data=data)
#
# # content = res.content.decode('utf-8')
#
# print(res.text)
import re
s = 'abc\nde'
r = re.match('abc.de', s, flags=re.DOTALL)
print(r.group())